<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */

?>

<?php echo '<?php'; ?> 

$this->widget('ext.pdfgrid.EPDFGrid', array(
	'id' => '<?php echo $this->class2id($this->modelClass); ?>-pdf',
	'dataProvider' => $model->search(),
	'fileName' => '<?php echo $this->class2id($this->modelClass); ?>',
	'columns' => array(
<?php
$count = 0;
foreach ($this->tableSchema->columns as $column) {
	if (++$count == 7)
		echo "\t\t/*\n";
	echo "\t\t" . $this->generateGridViewColumn($this->modelClass, $column).",\n";
}
if ($count >= 7)
	echo "\t\t*/\n";
?>

	),
  'config'    => array(
      'title'     => Yii::app()->name,
      'subTitle' => '<?php echo $this->class2id($this->modelClass); ?>  List',
      'colWidths' => array(40, 40, 40, 40, 40),
      'colAligns' => array('C','L','L','L','L','C','C'),
      'headFillColor' => array(130,0,0),
      'headTextColor' => 255,
      'evenFillColor' => array(240,240,240),
      'rowTextColor' => 50
  ),
	
)); ?>